package org.quipu.client;

import org.quipu.client.events.AppEventBus;

public abstract class AppEventCachedComponent extends AppEventComponent {

    private final AppCache cache;

    public AppEventCachedComponent(AppEventBus eventBus, AppCache cache) {
        super(eventBus);
        if(cache == null)
            throw new IllegalArgumentException("App cache is null");
        this.cache = cache;
    }

    protected final AppCache getCache() {
        return cache;
    }
}
